﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using _4T.BLL;

namespace _4T
{
    public partial class Register : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnRegister_Click(object sender, EventArgs e)
        {
            PersonalInfoBLL personBLL = new PersonalInfoBLL();
            int result = personBLL.Register(txtUsername.Text, txtPassword.Text, txtFullname.Text,
                txtPhoneNumber.Text, txtEmail.Text, txtAddr.Text, null);
            if (result > 0)
            {
                Response.Redirect("ProfileView_CMS.aspx");
            }
        }
    }
}